package com.kczd.jinlan.view.mine;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.ListView;

import com.kczd.jinlan.R;
import com.kczd.jinlan.adapter.EvaluateAdapter;
import com.kczd.jinlan.model.Evaluate;

import java.util.ArrayList;
import java.util.List;

/**
 * yang_g
 * 我的评价
 * Created by Administrator on 2017/5/22.
 */

public class EvaluateActivity extends Activity {
    private ListView list_evaluate;
    private List<Evaluate> datas;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.evaluate_activity);
        init();
        list_evaluate = (ListView) findViewById(R.id.list_evaluate);
        list_evaluate.setAdapter(new EvaluateAdapter(datas));
    }

    private void init() {
        datas = new ArrayList<>();
        datas.add(new Evaluate(R.mipmap.touxiang, "海绵宝宝强迫症", "2014-04-12", "11:00AM", "鸡蛋很新鲜，跟小时候在农村时吃的一样，物有所值。。。"
                , "农家土鸡蛋", "5kg装，", "7.6/kg", "￥38.00", "￥76.00", R.mipmap.ic_launcher));
        datas.add(new Evaluate(R.mipmap.touxiang, "海绵宝宝强迫症", "2014-04-12", "11:00AM", "鸡蛋很新鲜，跟小时候在农村时吃的一样，物有所值。。。"
                , "农家土鸡蛋", "5kg装，", "7.6/kg", "￥38.00", "￥76.00", R.mipmap.ic_launcher));
    }



}
